<script setup lang="ts">
import Swiper from 'swiper'


import { onMounted } from 'vue'
onMounted(()=> {

  var swiper = new Swiper('.swiper-container', {
    loop : true,
    autoplay : 1000,
    pagination: '.swiper-pagination',
    paginationClickable: true,
    direction: 'vertical',
    slidesPerView : 6,
  });

})
</script>

<template>
<div class="lunbo">
  <div class="swiper-container">
    <div class="swiper-wrapper">
      <div class="swiper-slide"><p class="text">文字 10</p></div>
      <div class="swiper-slide"><p class="text">文字 10</p></div>
      <div class="swiper-slide"><p class="text">文字 10</p></div>
      <div class="swiper-slide"><p class="text">文字 10</p></div>
      <div class="swiper-slide"><p class="text">文字 10</p></div>
      <div class="swiper-slide"><p class="text">文字 10</p></div>
      <div class="swiper-slide"><p class="text">文字 10</p></div>
      <div class="swiper-slide"><p class="text">文字 10</p></div>
      <div class="swiper-slide"><p class="text">文字 10</p></div>
      <div class="swiper-slide"><p class="text">文字 10</p></div>
    </div>
    <!-- Add Pagination -->
<!--    <div class="swiper-pagination"></div>-->
  </div>
</div>
</template>

<style scoped lang="less">
.text{
  border-bottom: 1px solid #2c3e50;
}
.swiper-wrapper{
  width: 100%;
  height: 100%;
}
.lunbo{
  height:  100%;
}
.swiper-container {
  overflow: hidden;
  height: 200px;
  width: 100%;
  color: #2c3e50;
}
.swiper-slide {
  overflow: hidden;
  text-align: center;
  font-size: 14px;
  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

</style>
